package io.gitee.zhangbinhub.admin.workflow.repo

import io.gitee.zhangbinhub.admin.workflow.base.BaseRepository
import io.gitee.zhangbinhub.admin.workflow.entity.MyProcessInstance
import org.springframework.transaction.annotation.Transactional
import java.util.*

@Transactional(transactionManager = "transactionManagerPrimary")
interface MyProcessInstanceRepository : BaseRepository<MyProcessInstance, String> {
    fun findByUserIdAndProcessInstanceId(userId: String, processInstanceId: Long): Optional<MyProcessInstance>
}